# -*- coding: UTF-8 -*-
"""
@author: tgy
@file: demo02.py
@time: 2021/02/24
"""

class Base:

    def __init__(self, name):
        self.name = name

    def func(self):
        ...
        print('name',self.name)



class A:
    ...
    def run(self):
        ...
        print(self)
        # super().run()

class B:
    ...
    def run(self):
        print(self)
        print('b')

class C(A):
    ...
    def __init__(self):
        ...
        print(super(C, C).run)
        print(super(C, self).run)


def super01(cls, inst):
    mro = inst.__class__.mro()
    return mro[mro.index(cls) + 1]


def test01():
    ...
    c = C()
    c.run()



if __name__ == '__main__':
    pass
    # print(Base.func)
    test01()
